package com.zorn.platform.role.action;

import com.zorn.core.provider.ActionSupportProvider;
import com.zorn.platform.role.service.IRoleComponentService;

public class RoleComponentAction extends ActionSupportProvider {

	/* Fields
	================================================== */
	private IRoleComponentService roleComponentService;

	/* Methods
	================================================== */
	public String query() {
		roleComponentService.query(getParameterMap());

		setJSONObject(roleComponentService.getResult());

		return JSON_RESULT;
	}

	public String count() {
		roleComponentService.count(getParameterMap());

		setJSONObject(roleComponentService.getResult());

		return JSON_RESULT;
	}

	public String insert() {
		roleComponentService.insert(getParameterMap());

		setJSONObject(roleComponentService.getResult());

		return JSON_RESULT;
	}

	public String update() {
		roleComponentService.update(getParameterMap());

		setJSONObject(roleComponentService.getResult());

		return JSON_RESULT;
	}

	public String delete() {
		roleComponentService.delete(getParameterMap());

		setJSONObject(roleComponentService.getResult());

		return JSON_RESULT;
	}

	/* Getters & Setters
	================================================== */
	public void setRoleComponentService(IRoleComponentService roleComponentService) {
		this.roleComponentService = roleComponentService;
	}

}